process.env.VUE_APP_NAME = require('./package.json').name
process.env.VUE_APP_VERSION = require('./package.json').version
process.env.VUE_APP_DESCRIPTION = require('./package.json').description
process.env.VUE_APP_PROJECTID = require('./package.json').projectId
process.env.VUE_APP_PROJECTNAME = require('./package.json').projectName
process.env.VUE_APP_DIRNAME = __dirname
const VueFilenameInjector = require('@d2-projects/vue-filename-injector')
module.exports = {
  lintOnSave: false,
  publicPath: './',
  productionSourceMap: true,
  chainWebpack: config => {
    VueFilenameInjector(config, {
      propName: '__anovFile' // default  将文件的相等路径存储到 $options.__anovFile
    })
  },
  devServer: {
    proxy: {
      '/api': {
        target: '/api',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}
